package com.my.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("familyinfomation")
//家谱类
public class FamilyInformation {
  @TableId(value = "family_archive_id", type = IdType.AUTO)
  private Integer familyArchiveId;
  private String name;
  private Integer uploader;
  private Date uploadTime;
  private Integer totalPages;
  private String style;
  private Integer state;
  private String genealogy;
  private String edition;
  private String revisionDate;
  private String residence;
  private String household;
  private String other;

  public FamilyInformation(String name, Integer uploader, Integer totalPages) {
    this.name = name;
    this.uploader = uploader;
    this.totalPages = totalPages;
  }

  public FamilyInformation(Integer familyArchiveId, String genealogy, String style, String changeYear, String version, String residence, String tName, String other) {
    this.familyArchiveId = familyArchiveId;
    this.genealogy = genealogy;
    this.style = style;
    this.revisionDate = changeYear;
    this.edition = version;
    this.residence = residence;
    this.household = tName;
    this.other = other;
  }
}


